#include <bits/stdc++.h>
using namespace std;

void solve()
{
    int n;
    cin >> n;
    int ans = 0;
    for (int i = 0; i < n; i++){
        int x;
        cin >> x;
        ans ^= __builtin_ctz(x & -x);
    }
    cout << (ans ? "YES\n" : "NO\n") << endl;
}

int main()
{
    int t;
    cin >> t;
    while (t--)
        solve();
}